<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlFrmFichaFamiliar.ascx.vb" Inherits="Pages_Controls_ctlFrmFichaFamiliar" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table width="100%">
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxButton ID="btnGrabar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" OnClick="btnGrabar_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="Grabar">
                        <Image Url="~/Images/icons/page_save.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td style="width: 173px; height: 26px">
                </td>
                <td style="width: 573px; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtFamiliarID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                    <dx:ASPxTextBox ID="txtPersonaID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtParentescoID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtTitularID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtCodFicha" runat="server" ClientEnabled="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblCodPersona" runat="server" Font-Bold="True" Text="Cod Persona:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;<dx:ASPxTextBox ID="txtCodPersona" runat="server" ClientEnabled="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;</td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;<dx:ASPxDateEdit ID="cmbFechaInscripcion" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Height="15px" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" ClientVisible="False">
                        <CalendarProperties>
                            <HeaderStyle Spacing="8px" />
                            <FooterStyle Spacing="3px" />
                        </CalendarProperties>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxDateEdit>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblNombre" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Nombre :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtNombres" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings ErrorText="Ingrese Nombre" SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Nombre" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblFechaNacimiento" runat="server" Font-Bold="True" Text="Fecha Nacimiento :">
                    </dx:ASPxLabel>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;<dx:ASPxDateEdit ID="cmbFechaNacimiento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                        <CalendarProperties>
                            <HeaderStyle Spacing="8px" />
                            <FooterStyle Spacing="3px" />
                        </CalendarProperties>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Falta ingresar fecha de navimiento" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxDateEdit>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Paterno:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Apellido" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px; height: 26px">
                    <dx:ASPxLabel ID="lblSexo" runat="server" Font-Bold="True" Text="Sexo:">
                    </dx:ASPxLabel>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    <dx:ASPxComboBox ID="cmbSexo" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Text="Mujer" Value="Mujer" />
                            <dx:ListEditItem Text="Hombre" Value="Hombre" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Materno:" Width="112px">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;</td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;</td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Tipo Documento :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;<dx:ASPxComboBox ID="cmbTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        ValueType="System.Int32">
                        <Items>
                            <dx:ListEditItem Text="DNI" Value="0" />
                            <dx:ListEditItem Text="CE" Value="0" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Numero Documento:" Width="141px">
                    </dx:ASPxLabel>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;<dx:ASPxTextBox ID="txtNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="*Ingrese numero de documento" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="ASPxLabel1" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Parentesco :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;<dx:ASPxComboBox ID="cmbParentesco" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" DataSourceID="ObjectDataSourceParentesco" LoadingPanelImagePosition="Bottom"
                        OnSelectedIndexChanged="cmbParentesco_SelectedIndexChanged" ShowShadow="False"
                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" TextField="descripcion"
                        ValueField="TB_SOC_ESI_Parentesco_ID" ValueType="System.Int32" AutoPostBack="True">
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td style="width: 573px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblIngresoMensual" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Ingreso Mensual:" ClientVisible="False">
                    </dx:ASPxLabel>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;&nbsp;
                    <dx:ASPxComboBox ID="txtIngresoMensual" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        ValueType="System.Int32" ClientVisible="False">
                        <Items>
                            <dx:ListEditItem Text="Hasta S/. 800" Value="800" />
                            <dx:ListEditItem Text="Entre S/. 800 y S/. 1500" Value="1500" />
                            <dx:ListEditItem Text="Entre S/. 1,500 y S/. 3,000" Value="3000" />
                            <dx:ListEditItem Text="Entre S/. 3,000 y S/. 5,000" Value="5000" />
                            <dx:ListEditItem Text="Entre S/. 5,000 y S/. 10,000" Value="10000" />
                            <dx:ListEditItem Text="M&#225;s de S/. 10,000" Value="10001" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;</td>
                <td style="width: 173px; height: 26px">
                    &nbsp;</td>
                <td style="width: 573px; height: 26px">
                    &nbsp;</td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                    &nbsp;</td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
                <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td colspan="4" style="height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblMensaje" runat="server" ForeColor="#CC0000" Visible="False"
                        Width="689px" ClientVisible="False">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 22px; height: 26px">
                </td>
                <td style="width: 22px; height: 26px">
                </td>
                <td style="width: 22px; height: 26px">
                </td>
            </tr>
        </table>
        <asp:ObjectDataSource ID="ObjectDataSourceParentesco" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
            TypeName="ClubDataSetTableAdapters.TB_SOC_ESI_ParentescoTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_TB_SOC_ESI_Parentesco_ID" Type="Int32" />
                <asp:Parameter Name="Original_codParentesco" Type="Int32" />
                <asp:Parameter Name="Original_descripcion" Type="String" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="codParentesco" Type="Int32" />
                <asp:Parameter Name="descripcion" Type="String" />
                <asp:Parameter Name="Original_TB_SOC_ESI_Parentesco_ID" Type="Int32" />
                <asp:Parameter Name="Original_codParentesco" Type="Int32" />
                <asp:Parameter Name="Original_descripcion" Type="String" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="codParentesco" Type="Int32" />
                <asp:Parameter Name="descripcion" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
       
    </ContentTemplate>
</asp:UpdatePanel>
